package com.lyfei.ydc.domain.vo;

import com.lyfei.ydc.domain.entity.Sku;
import com.lyfei.ydc.domain.entity.SpuAttribute;
import com.lyfei.ydc.domain.entity.SpuImg;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SpuVo {
    private Long id;

    private String title;

    private String subTitle;

    private Long categoryId;

    private String categoryName;

    private Long rootCategoryId;

    private String rootCategoryName;

    private Boolean online;

    private Long sketchSpecId;

    private String sketchSpecName;

    /**
     * 文本型价格，有时候SPU需要展示的是一个范围，或者自定义平均价格
     */
    private BigDecimal price;

    private String img;

    private BigDecimal discountPrice;

    private String description;

    private String tags;

    private String detailText; // 商品详情

    private List<SpuAttribute> spuAttributes; // 商品属性

    private List<Sku> skuList;

    private List<SpuImg> spuImgList;
}
